import Vue from 'vue'
import App from './App.vue'
import router from './router/'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './style/index.less'
import MyBreadcrumb from '@/components/breadcrumb.vue' // 全局组件
import MyChannel from '@/components/channel.vue' // 全局组件
import MyCover from '@/components/cover.vue' // 全局组件
// 引入axios
import axios from './utils/request.js'
// 引入element-ui
Vue.use(ElementUI)
// 注册全局组件
Vue.component('MyBreadcrumb', MyBreadcrumb)
Vue.component('MyChannel', MyChannel)
Vue.component('MyCover', MyCover)
Vue.config.productionTip = false
// 二次封装的axios挂载到vue的原型
Vue.prototype.$http = axios
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
